package com.java2110.controller;

import com.java2110.dto.SubjectsDTO;
import com.java2110.entity.Subjects;
import com.java2110.service.SubjectService;
import com.java2110.service.impl.SubjectServiceImpl;
import com.java2110.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 * @since 2025-05-2025/5/23 15:37
 */
@RestController
@RequestMapping("/subjects")
public class SubjectsController {
    @Autowired
    private SubjectService subjectService;
    @GetMapping("/find")
    public PageUtils<Subjects> find(SubjectsDTO subjectsDTO){
        return subjectService.find(subjectsDTO);
    }
}
